import request from '@/utils/request'

// 查询加密配置列表
export function listEncryptConfig(query) {
  return request({
    url: '/mail/encryptConfig/list',
    method: 'get',
    params: query
  })
}

// 查询加密配置详细
export function getEncryptConfig(id) {
  return request({
    url: '/mail/encryptConfig/' + id,
    method: 'get'
  })
}

// 新增加密配置
export function addEncryptConfig(data) {
  return request({
    url: '/mail/encryptConfig',
    method: 'post',
    data: data
  })
}

// 修改加密配置
export function updateEncryptConfig(data) {
  return request({
    url: '/mail/encryptConfig',
    method: 'put',
    data: data
  })
}

// 删除加密配置
export function delEncryptConfig(id) {
  return request({
    url: '/mail/encryptConfig/' + id,
    method: 'delete'
  })
}
